﻿<UserControl x:Class="KineticListViewTest.HandleDisconnectedMouseUp"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:KineticListViewTest="clr-namespace:KineticListViewTest" xmlns:KineticListView="clr-namespace:KineticListView;assembly=KineticListView" mc:Ignorable="d" 
             >
    <UserControl.Resources>
        <KineticListViewTest:ListOfElementViewModel x:Key="vm" />
        <DataTemplate x:Key="DataTemplate1" >
            <Border BorderThickness="5" Width="197" Height="197" BorderBrush="Red">
                <StackPanel>
                    <TextBlock TextWrapping="Wrap"><Run Text="Stringa che è abbastanza lunga0"/></TextBlock>
                    <TextBlock TextWrapping="Wrap" Text="{Binding IValue}" FontFamily="Segoe WP Black" FontSize="64" Foreground="Red" RenderTransformOrigin="0.5,0.5" TextAlignment="Center">
        				<TextBlock.RenderTransform>
        					<TransformGroup>
        						<ScaleTransform/>
        						<SkewTransform AngleX="20"/>
        						<RotateTransform/>
        						<TranslateTransform/>
        					</TransformGroup>
        				</TextBlock.RenderTransform>
                    </TextBlock>
                </StackPanel>
            </Border>
        </DataTemplate>
    </UserControl.Resources>
    <StackPanel d:DataContext="{StaticResource ResourceKey=vm}">
        <StackPanel Orientation="Horizontal" >
           


            <KineticListView:KineticListView x:Name="listView2" ItemsSource="{Binding Path=DataToShow}"
                  Width="600"
                  ItemTemplate="{DynamicResource DataTemplate1}" 
                  BorderThickness="0"
                                 Direction="Horizontal">

            </KineticListView:KineticListView>
            <Grid Width="200" Background="White">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0.615*"/>
                    <ColumnDefinition Width="0.385*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="23.5"/>
                    <RowDefinition Height="24"/>
                    <RowDefinition Height="26.5"/>
                    <RowDefinition Height="46"/>
                </Grid.RowDefinitions>
                <TextBox Text="{Binding MouseUpDisconnectionInterval, ElementName=listView2}" Grid.Column="1" Margin="0" />
                <Label Content="Mouse Up tolerance" Margin="0,0,-22,0" d:LayoutOverrides="Width, Height"/>
            </Grid>

        </StackPanel>



    </StackPanel>
</UserControl>
